package com.example.project.projectspringcloud.dao.user;

import com.example.project.projectspringcloud.dao.BaseMapper;
import com.example.project.projectspringcloud.entity.user.RelationRoleUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RelationRoleUserMapper extends BaseMapper<RelationRoleUser> {

    /**
     * get all RelationRoleUser by user
     * @param relationRoleUser
     * @return
     */
    List<RelationRoleUser> selectAllByUser(RelationRoleUser relationRoleUser);

    /**
     * delete RelationRoleUser by user id
     * @param id
     * @return
     */
    int deleteByUser(Integer id);
}